package top.yohann.study.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

@ApiModel("邮件信息")
@Data
public class MailDto {

    @ApiModelProperty("邮箱")
    @NotBlank(message = "请填写必填内容-邮箱")
    @Email(message = "请正确填写邮箱")
    private String mail;

    @ApiModelProperty("标题")
    @NotBlank(message = "请填写必填内容-标题")
    private String subject;

    @ApiModelProperty("内容")
    @NotBlank(message = "请填写必填内容-内容")
    private String content;

    @ApiModelProperty(value = "是否为html", example = "false")
    private boolean isHtml;
}